package com.service.impl;

import com.dao.UserDao;
import com.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


@Component("userService")
public class UserServiceImpl implements UserService {
    @Autowired //自动引入依赖
    UserDao userDao;
    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }
    @Override
    public boolean login(String name,String password) {
        return userDao.login(name,password);
    }
}
